import Ax from '../api';

export default {
  componentDeviceAdd: (param = {}) => Ax.post(`/componentDevice/add`, param),
  componentDeviceEdit: (param = {}) => Ax.post(`/componentDevice/edit`, param),
  componentDeviceDelete: (query) => Ax.delete(`/componentDevice/delete?_id=${query._id}`),
  componentDeviceList: (query) => Ax.get(`/componentDevice/list?componentId=${query.componentId}`),
};